package com.pine.dcts.task;

import com.alibaba.fastjson.JSON;
import com.pine.dcts.common.TaskType;
import com.pine.dcts.entity.BaseEntity;
import com.pine.dcts.metadata.MetadataAnalysis;
import com.pine.dcts.model.TaskMeta;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author xiaoyuan
 * @create 2021/1/13 17:22
 **/
@Setter
@Getter
@AllArgsConstructor
public abstract class BaseTask extends BaseEntity implements TaskMeta {

    protected String taskId;

    protected String taskName;

    protected String taskConfig;

    protected TaskType taskType;

    protected String machineKey;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
